<div class="bg-light lter b-b wrapper-md">
    <h1 class="m-n font-thin h3">汇付对账</h1>
</div>

<div class="wrapper-md">
    <div class="panel panel-default">
        <div class="panel-heading">
            汇付-平台对账
        </div>
        <toaster-container toaster-options="{'position-class': 'toast-center', 'close-button':true}"></toaster-container>
        <div class="panel-body b-b b-light">
            <div class="form-group pull-in clearfix" ng-controller="DatepickerDemoCtrl">
                <div class="col-sm-2">
                    <label>
                        <font>
                            <font>对账时间:</font>
                        </font>
                    </label>
                    <p class="input-group">
                        <span class="input-group-btn">
                            <button type="button" class="btn btn-default" ng-click="open($event)">
                                <i class="glyphicon glyphicon-calendar"></i>
                            </button>
                        </span>
                        <input type="text" class="form-control" datepicker-popup="{{format}}" ng-click="open($event)" ng-model="pthfreconciliation.Time"
                            is-open="opened" max-date="maxDate" datepicker-options="dateOptions" ng-required="true" close-text="Close"
                        />
                    </p>
                </div>
                <div class="col-sm-2">
                    <label>
                        <font>
                            <font>类型:</font>
                        </font>
                    </label>
                    <select class="form-control ng-pristine ng-untouched ng-invalid ng-invalid-required" ng-model="pthfreconciliation.Type">
                        <option value="0">全部</option>
                        <option value="1">充值</option>
                        <option value="2">提现</option>
                        <option value="3">放款</option>
                        <option value="4">还款</option>
                        <option value="5">商户扣款</option>
                    </select>
                </div>
                <div class="col-sm-2">
                    <button class="btn btn-info btn-addon" style="margin-top:25px" ng-if='!graybtn'
                        ng-click="addreconciliation()">确定对账</button>
                    <button class="btn btn-light btn-addon" style="margin-top:25px" ng-if='graybtn'>确定对账</button>
                </div>
            </div>
        </div>
        <div class="table-responsive">
            <table id="tab" class="table table-striped m-b-none">
                <thead>
                    <tr>
                        <th style="min-width: 125px">对账时间</th>
                        <th style="min-width: 150px">类型</th>
                        <th style="min-width: 150px">对账结果</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-if="reconciliationList==''">
                        <td colspan="9">当前无任何数据</td>
                    </tr>
                    <tr ng-repeat="obj in reconciliationList">
                        <td ng-bind="obj.PlanDate|date: 'yyyy-MM-dd HH:mm:ss'"></td>
                        <td ng-bind="obj.Type"></td>
                        <td ng-bind="obj.IsSuccess?'平账':'待处理'"></td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
    <div class="btn-group pull-right">
        <button type="button" class="btn btn-default" ng-click="prev()">
            <font>
                <font>上一页</font>
            </font>
        </button>
        <button type="button" class="btn btn-default btnNum">{{pthfreconciliation.Index?pthfreconciliation.Index:'1'}}</button>
        <button type="button" class="btn btn-default" ng-click="next()">
            <font>
                <font>下一页</font>
            </font>
        </button>
        <span class="btn btn-default">共
            <span ng-bind="(reconciliationListListCount?reconciliationListListCount:'0')+'条数据'"></span>
        </span>
    </div>